package com.bbx.taxi.client.Task;

import org.json.JSONException;
import org.json.JSONObject;

import android.app.Activity;

import com.bbx.androidapi.util.SharedPreUtil;
import com.bbx.androidapi.util.ToastUtil;
import com.bbx.api.sdk.model.passanger.OrderWaitBuild;
import com.bbx.api.sdk.model.passanger.PushStatusBuild;
import com.bbx.api.sdk.model.passanger.WeightOrVolumnBuild;
import com.bbx.api.sdk.model.passanger.Return.PushStatus;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.base.JsonBuild;
import com.bbx.api.sdk.net.passeger.conn.CancelReasonListNet;
import com.bbx.api.sdk.net.passeger.conn.OrderWaitNet;
import com.bbx.api.sdk.net.passeger.conn.PushStatusNet;
import com.bbx.api.sdk.net.passeger.conn.WeightNet;
import com.bbx.taxi.client.Bean.Message.ObserverListener.DATA_TYPE;
import com.bbx.taxi.client.Task.BaseAsyncTask;
import com.bbx.api.util.SharedPreEncryptUtil;
import com.bbx.taxi.client.MyApplication;
import com.bbx.taxi.client.R;
/** 
 * @Path com.bbx.taxi.client.Task.MyPushStatusTask.java
 * @Author 严旭文
 * @Date 2016-6-13 下午1:53:40
 * @Company 蓝海（福建）信息技术有限公司
 * @Description
 *  获取市内订单被推送状态
 */
public class MyPushStatusTask extends BaseTask{
	  public DATA_TYPE TYPE=DATA_TYPE.PUSHSTATUS;
	    private PushStatusBuild mPushStatusBuild;
		public MyPushStatusTask(Activity context,String order_id,String line_id) {
			super(context);
			mPushStatusBuild = new PushStatusBuild(context);
			mPushStatusBuild.uid = MyApplication.getInstance().getUid();
			mPushStatusBuild.access_token = MyApplication.getInstance().getToken();
			mPushStatusBuild.order_id = order_id;
			mPushStatusBuild.line_id=line_id;
//			PushStatus
		}
		@Override
		public boolean isShow() {
			return true;
		}

		@Override
		public boolean isReturnString() {
			return false;
		}
		@Override
		public boolean condition() {
			// TODO Auto-generated method stub
			return true;
		}
		@Override
		public void request() {
			setType(TYPE,mPushStatusBuild);
		}
		@Override
		public void success(int status,Object object) {
			// TODO Auto-generated method stub
			
		}
		@Override
		public void failed(int status, String msg,String message) {
			// TODO Auto-generated method stub
			
		}
		@Override
		public BaseNetwork getBaseNetwork() {
			return new PushStatusNet(context);
		}
}
